package com.ftg.learn.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;

/**
 * <p>
 * 人员表
 * </p>
 *
 * @author lalala
 * @since 2022-03-07
 */
@TableName("sys_user")
@Builder
@ApiModel(value = "User对象", description = "人员表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("人员id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    @ApiModelProperty("人员账号")
    private String account;

    @ApiModelProperty("人员密码")
    private String password;

    @ApiModelProperty("人员名称")
    private String uname;

    @ApiModelProperty("人员性别")
    private String sex;

    @ApiModelProperty("人员年龄")
    private Integer age;

    @ApiModelProperty("人员状态(是否删除,0为存在,1为删除)")
    private Integer status;

    @ApiModelProperty("人员联系方式(电话)")
    private String uphone;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getUphone() {
        return uphone;
    }

    public void setUphone(String uphone) {
        this.uphone = uphone;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
            "uid=" + uid +
            ", account=" + account +
            ", password=" + password +
            ", uname=" + uname +
            ", sex=" + sex +
            ", age=" + age +
            ", status=" + status +
            ", uphone=" + uphone +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
